// created by noellynch
// Jun 4, 2009

package com.sceneworker.editors.glslshadereditor.uniformreps;

import java.util.ArrayList;

import javax.swing.JTextField;

abstract	public class BaseUniformRep {

	protected	String		out(Object ...cla_values) {
		String	lstr_temp = getNameRep();
		lstr_temp += "\n[";
		
		for(Object lcl_v : cla_values) {
			lstr_temp += lcl_v.toString() + ", ";
		}
		
		lstr_temp = lstr_temp.substring(0, lstr_temp.lastIndexOf(','));
		
		lstr_temp += "]";
		
		return lstr_temp;
	}
	
	abstract	public String getNameRep();

	@Override
	public String toString() {
		return getNameRep();
	}
	
	protected	ArrayList<JTextField>	uiFields(JTextField ...cla_fields) {
		ArrayList<JTextField>		lcla_fields = new ArrayList<JTextField>();
		
		for(JTextField lcl_field : cla_fields) {
			lcla_fields.add(lcl_field);
		}
		
		return lcla_fields;
	}
}
